x86/traps: avoid using current too early on boot
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 25 Jun 2015 12:57:04 +0000 (14:57 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 25 Jun 2015 12:57:04 +0000 (14:57 +0200)
commit142473cfce41a565898e0fa33dc98a1f5e41abe4
tree9434b724d3c56e2c42f9810d8ad212b12a50bbb4
parent319e431e40139e27d871cbe53976b423301a6af0
x86/traps: avoid using current too early on boot

Early on boot, current has the sentinel value 0xfffff000.  Blindly using it in
show_registers() causes a nested failure and no useful information printed
from an early crash.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/x86_64/traps.c